package com.jdkcn.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 * @author weijun
 *
 */

@Controller
public class ListCategoryController {
    
    /**
     * 参数即为所需要获取的分类名称
     * @param model
     */
    @RequestMapping ("/category/{categoryName}")
    public void showCategory (@PathVariable String categoryName, @RequestParam ("id") int id, Model model) {
        // set model
    }

}
